package com.basic.business.linkBacklog.mapper;

import com.basic.business.kanban.vo.LinkManageCollectRespVo;
import com.basic.business.kanban.vo.LinkReplayPageReqVo;
import com.basic.business.kanban.vo.LinkReplayRespVo;
import com.basic.business.linkBacklog.domain.TLinkBacklog;
import com.basic.common.core.mapper.BaseMapper;

import java.util.List;

/**
 * 链接待办事项Mapper接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface TLinkBacklogMapper extends BaseMapper<TLinkBacklog> {

    /**
     * 链接数据复盘，获取已优化数据
     * @param linkReplayPageReqVo
     * @return
     */
    public List<LinkReplayRespVo> getOptimizeList(LinkReplayPageReqVo linkReplayPageReqVo);

    /**
     * 链接数据复盘汇总数据
     * @param linkReplayPageReqVo
     * @return
     */
    LinkManageCollectRespVo getLinkManageCollectData(LinkReplayPageReqVo linkReplayPageReqVo);

    public int insert(TLinkBacklog tLinkBacklog);

    /**
     * 根据商品id获取近1个月待办事项数量
     * @param goodsId
     * @return
     */
    public int getBackLogCountByGoodsId(String goodsId);

    /**
     * 获取超时待办事项
     * @return
     */
    List<TLinkBacklog> getTimeoutBacklog();
}
